﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Twi.DataAccess.Common;

namespace Twi.TestDB
{
    public class Ticket : ModuleBase
    {
        public static readonly Ticket Instance = new Ticket();

        public XElement TicketAdd(XElement xeData)
        {
            Action<XElement, TwiCommand> processDelegate = (XElement xe, TwiCommand cmd) =>
            {
                cmd.ExecuteInsert(xe);
            };
            return ModuleHelper.Instance.Process(processDelegate);
        }

    }
}
